home *** CD-ROM | disk | FTP | other *** search
- /*****************************************************************************/
- /* */
- /* */
- /* ***** ***** */
- /* ***** ***** */
- /* ***** ***** */
- /* ***** ***** */
- /* *************** *************** */
- /* ***************** ***************** */
- /* *************** *************** */
- /* ***** ***** TheNet */
- /* ***** ***** Portable. Compatible. */
- /* ***** ***** Public Domain */
- /* ***** ***** G8KBB */
- /* */
- /* This software is public domain ONLY for non commercial use */
- /* */
- /* */
- /*****************************************************************************/
-
- /*
- * Released as TheNet X-1J release 4, January 1995
- *
- * add support for l3 heard list
- * add port flush support
- *
- * Released as TheNet X-1J, September 1993
- */
-
- #ifdef MODIFIED
- extern unsigned DEFCW; /* default cwid state */
- extern char DEFCAL[]; /* Call des TNC */
- extern unsigned char DEFCWS;
-
- #ifdef CWID
- extern unsigned cwidtm, cwiden, cwspeed;
- extern signed char cwstate;
- extern unsigned char cwtimr, cwbit, cwofs, cwch;
- extern unsigned char cwdat[];
- #endif
-
- #endif /* MODIFIED */
-
- #ifdef MONITORCMD
- extern lhtyp heardl;
- extern char txfhdr[];
- extern char rxfprt;
- extern unsigned seconds;
- extern unsigned char mhlcount;
- extern unsigned char DEFMHL;
- extern unsigned heardtm;
- extern unsigned runtime, uptime;
- #ifdef L3MONITOR
- extern lhtyp l3heardl;
- extern unsigned char l3mhlcnt;
- #endif
- #endif
-
- #ifdef STATSCMD
- extern unsigned txstat[NUM1STATS]; /* percent time tx was on per 5mins */
- extern unsigned rxstat[NUM1STATS]; /* ditto for DCD on */
- extern unsigned txon, dcdon; /* counter in 10 ms intervals */
- extern unsigned usetim; /* timer for usage updates for stats */
- extern unsigned cpucnt[];
- extern unsigned cpuload;
- extern unsigned char cpu2load;
- extern unsigned minbuf[], minfre;
- extern unsigned l2stats[NUML2STATS][NUMPORTS*2];
- extern unsigned l3gwcnt[2];
- #endif
-
- #ifdef MANAGED
- extern unsigned auditmask;
- extern char AudCon[];
- extern char AudConAcc[];
- extern char AudDisc[];
- extern char AudDiscAcc[];
- #endif
-
- #ifdef ACL
- extern ACLMB acl;
- #endif
-
- #ifdef IPROUTE
- extern lhtyp iprxfl;
- extern lhtyp arprxfl;
- #endif
-
- #ifdef MOD_MTU
- extern unsigned mtu_ip0;
- extern unsigned mtu_ip1;
- extern unsigned mtu_ipn;
- extern unsigned mtu_i_max;
- extern unsigned mtu_l2_max;
- extern unsigned DEF_MTU_IP0;
- extern unsigned DEF_MTU_IP1;
- extern unsigned DEF_MTU_IPN;
- extern unsigned DEF_MTU_I_MAX;
- extern unsigned DEF_MTU_L2_MAX;
- #endif
-
- #ifdef PORTFLUSH
- extern unsigned char pending[];
- extern unsigned char sentdata[];
- extern unsigned char none_last_time[];
- extern unsigned flushed[];
- #endif